<%@page import="ext.acae2.baseline.resource.BaselineActionResource"%>
<%@ taglib prefix="jca"
	uri="http://www.ptc.com/windchill/taglib/components"%>
<%@ taglib prefix="fmt" uri="http://www.ptc.com/windchill/taglib/fmt"%>
<%@ include file="/netmarkets/jsp/components/beginWizard.jspf"%>
<%@ include file="/netmarkets/jsp/components/includeWizBean.jspf"%>
<fmt:setBundle
	basename="ext.acae2.baseline.resource.BaselineActionResource" />
<fmt:message var="setBaselineType"
	key="<%=BaselineActionResource.SET_BASELINE_TYPE%>" />

<fmt:setLocale value="${localeBean.locale}" />
<fmt:setBundle basename="com.ptc.core.ui.componentRB" />
<fmt:message var="setAttributesLabel"
	key="object.setAttributesWizStep.title" />

<jca:initializeItem operation="${createBean.create}"
	baseTypeName="wt.vc.baseline.ManagedBaseline" />

<jca:wizard buttonList="DefaultWizardButtonsNoApply"
	helpSelectorKey="baseline.createHelp">
	<jca:wizardStep action="defineItemWizStep" label="${setBaselineType }"
		type="object" />
	<jca:wizardStep action="setBaselineAttributesStep" type="baseline"
		label="${setAttributesLabel}" />
	<jca:wizardStep action="securityLabelStep" type="securityLabels" />
</jca:wizard>

<script type="text/javascript">
	window.onload = function() {
		var createTypeObj = document.getElementById("createType");
		if (createTypeObj.options.length > 1) {
			var newOption = document.createElement("OPTION");
			newOption.value = "";
			newOption.text = "";
			createTypeObj.options.add(newOption, createTypeObj.options[0]);
			newOption.selected = true;
		}
	}
	function user_validate(){
		var flag = PTC.validation.callAJAXValidation('BaselineExitValidator');
		 return flag;
	}
  
  setUserSubmitFunction(user_validate);
</script>

<%@include file="/netmarkets/jsp/util/end.jspf"%>